package com.leng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leng.VO.UserVO;
import com.leng.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author leng
 * @since 2022-08-21
 */
public interface UserMapper extends BaseMapper<User> {
    //多表联查+分页
    List<User> getUserList(@Param("page") Page<User> page,@Param("userVO") UserVO userVO);
    //查询所有
    List<User> getUserListToExcel(@Param("userVO") UserVO userVO);
    //查询用户名
    User getUserByUsername(String username);
}
